home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19970326-19970626 / 000070_news@columbia.edu _Thu Apr 10 12:32:11 1997.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id MAA02192
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Thu, 10 Apr 1997 12:32:11 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id MAA10947
  7.     for kermit.misc@watsun; Thu, 10 Apr 1997 12:32:10 -0400 (EDT)
  8. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: Hangup without killing device
  12. Date: 10 Apr 1997 16:32:09 GMT
  13. Organization: Columbia University
  14. Lines: 50
  15. Message-ID: <5ij4m9$gjk$1@apakabar.cc.columbia.edu>
  16. References: <slrn5kpjq7.gmn.srichard@xlink67.xlink.net>
  17. NNTP-Posting-Host: watsun.cc.columbia.edu
  18. Xref: news.columbia.edu comp.protocols.kermit.misc:6885
  19.  
  20. In article <slrn5kpjq7.gmn.srichard@xlink67.xlink.net>,
  21. Sabine Richard-Schneider <srichard@xlink.net> wrote:
  22. : I would like to know how to hang up kermit without killing the connections.
  23. : That means to use kermit only as a dialer to build up a slip connection.
  24. : Background: I log in at a computer who calls me back to build up a slip
  25. : connection (my system is aix 3.2.5) After teh second connect I nedd kermit
  26. : to terminate without clearing the device. Is that possible?
  27. >From the Kermit FAQ:
  28.  
  29.   http://www.columbia.edu/kermit/faq.html
  30.   ftp://kermit.columbia.edu/kermit/faq.txt
  31.  
  32. 27 HOW CAN I EXIT FROM C-KERMIT WITHOUT HANGING UP?
  33.  
  34. Many people want to be able to make a dialout connection with UNIX C-Kermit,
  35. but then use some other software on the connection that C-Kermit made.  They
  36. quickly find that when they exit from C-Kermit, that the connection is gone
  37. before they can start the other application.
  38.  
  39. It is a fundamental property of UNIX that when a process exits, then every
  40. file that was opened by that process is automatically closed by UNIX.  Closing
  41. a terminal device (such as a dialout tty device) hangs it up (by turning off
  42. the DTR signal).  There is nothing the process can do about it.
  43.  
  44. However, many workarounds are possible.  Here are just a few:
  45.  
  46.    - Tell C-Kermit to SET MODEM HANGUP-METHOD RS232, and then configure
  47.      your modem to ignore DTR (not recommended).
  48.  
  49.    - Read about the REDIRECT command in the second edition of Using
  50.      C-Kermit.
  51.  
  52.    - Find out the file descriptor of the open device (it is given by
  53.      C-Kermit's \v(ttyfd) variable) and then run ("!") your other program
  54.      from the C-Kermit prompt, feeding it the file descriptor, e.g.
  55.      through shell redirection or a command line option (the method
  56.      depends on the other program, the capabilities of the shell, etc).
  57.  
  58.    - After Kermit makes the connection, type "show comm" to find out the
  59.      filename of the lock file.  Then suspend Kermit, delete the lock
  60.      file, then start the other program and tell it to open the same tty
  61.      device.
  62.  
  63. Note that you can also tell C-Kermit to use a communications file descriptor
  64. created by another process; see the command-line options list in "Using
  65. C-Kermit", 2nd edition.
  66.  
  67. - Frank